package com.zhangyusheng.easyecharts.component;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TODO: 功能描述
 *
 * @author Michael zhang
 * @email zhangys_0217@sina.com
 * @since 2025年11月04日
 */
@Data
@Accessors(chain = true)
public class Label implements Serializable {
    private final static long serialVersionUID = 2L;

    private boolean show;
    private String formatter;
    private String position;

    public static class Builder{
        private boolean show;
        private String position;
        private String formatter;
        public Builder show(boolean show){
            this.show = show;
            return this;
        }
        public Builder position(String position){
            this.position = position;
            return this;
        }
        public Builder formatter(String formatter){
            this.formatter = formatter;
            return this;
        }
        public Label build(){
            return new Label(this);
        }

    }
    private Label(Builder builder){
        this.show = builder.show;
        this.position = builder.position;
        this.formatter = builder.formatter;
    }



}